package com.imooc.ad.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * Created byFengGuoXing  DATE:19-1-30 01:12
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommonResponse<T>implements Serializable {

    private Integer code;
    private String message;
    private T data;


    public CommonResponse(Integer code,String message){
         this.code = code;
         this.message = message;
    }

//    public static void main(String[] args) {
//        CommonResponse<Object> commonResponse = new CommonResponse<>(0,"");
//        commonResponse.setCode(3);
//        commonResponse.setData("dasda");
//        commonResponse.setD("dasdssdsaddd");
//        System.out.println(commonResponse);
//    }
}